package com.stylefeng.guns.rest.modular.App.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper=true)
@TableName("order_customer_relation")
 /**
 * 订单乘车人关系
 *
 * @author sasazaixian
 * @Date 2018-12-25 10:45
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class OrderCustomerRelation extends Model<OrderCustomerRelation> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;
	

	
    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.UUID)
    private String id;     //编号

    @ApiModelProperty(value = "订单编号")
    @TableField("oi_id")
    private String oiId;     //订单编号

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;     //姓名

    @ApiModelProperty(value = "身份证号")
    @TableField("idcard")
    private String idcard;     //身份证号

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;     //手机号



}
